<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
	prefix="tiles"%>

<rich:panel header="#{messages['prospect.company.member.doc.check.list']}">
	<h:panelGrid>
		<h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText>
	</h:panelGrid>

	<h:panelGrid width="100%">
		<h:outputText value="#{messages['membership.info']}" styleClass="sub_header" />
	</h:panelGrid>

	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">

		<h:panelGroup>
			<h:outputLabel for="name" value="#{messages['name']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="name"    styleClass="standardText" value="#{adminProspectDocCheckListBean.member.name}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="nameoncard" value="#{messages['name.on.card']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="nameoncard"    styleClass="standardText" value="#{adminProspectDocCheckListBean.member.nameOnCard}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="statement" value="#{messages['statement']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="statement"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.statementTypeLabel}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="sendstatement" value="#{messages['send.statement']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="sendstatement"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.statementLabel}"></t:outputText>
		</h:panelGroup>
		
	
		<h:panelGroup>
			<h:outputLabel for="othertimeshare" value="#{messages['member.of.other.timeshare']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="othertimeshare"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.timeshareCompFlagLabel}"></t:outputText>
		</h:panelGroup>
		
	   <h:panelGroup>
		    <h:outputLabel for="email" value="#{messages['email']}" styleClass="standardText_Label" />
	   </h:panelGroup>
	   <h:panelGroup>
	   	<t:outputText id="email"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.email}">
	   	</t:outputText>
	   </h:panelGroup>
	   
	   <%--<h:outputText></h:outputText>
		<t:message for="image" styleClass="error"></t:message>
		
		<h:panelGroup>
			<h:outputLabel for="image" value="#{messages['image']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:inputFileUpload id="image" storage="file"   ></t:inputFileUpload>
		</h:panelGroup>--%>

	</t:panelGrid>
	
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['company.info']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid id="compInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
		<h:panelGroup>
			<h:outputLabel for="CompanyName" value="#{messages['name']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="CompanyName"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.compName}"></t:outputText>
		
	
	    <h:panelGroup>
		    <h:outputLabel for="establish" value="#{messages['establish.date']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="establish"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.dateIncorporation}"></t:outputText>
	    </h:panelGroup>
	    
		<h:panelGroup>
			<h:outputLabel for="RegNo" value="#{messages['registration.no']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="RegNo"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.registerNo}"></t:outputText>
		
		<h:panelGroup>
			<h:outputLabel for="AccRefNo" value="#{messages['account.reference.no']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="AccRefNo"   styleClass="standardText"  value="#{adminProspectDocCheckListBean.memberComp.accRefNo}"></t:outputText>
		
		
		<h:panelGroup>
			<h:outputLabel for="natureofbusiness" value="#{messages['nature.of.business']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="natureofbusiness"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.natureOfBuz}"></t:outputText>
		
		<h:panelGroup>
			<h:outputLabel for="contactperson" value="#{messages['contact.person']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="contactperson"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.contactPerson}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="designation" value="#{messages['designation']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="designation"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.designation}"></t:outputText>
		</h:panelGroup>
   
		<h:panelGroup>
	    	<h:outputLabel for="CompanyAdress1" value="#{messages['address']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="CompanyAdress1"     styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.regAddress1}"></t:outputText>
	    
	    
	    <h:panelGroup></h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="CompanyAdress2"   styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.regAddress2}"></t:outputText>
	    </h:panelGroup>
	    
	    <h:panelGroup>
	    	<h:outputLabel for="CompanyPostcode" value="#{messages['postcode']}" styleClass="standardText_Label" />
	    </h:panelGroup>
    	<t:outputText id="CompanyPostcode"    styleClass="standardText" 
    	value="#{adminProspectDocCheckListBean.memberComp.regPostcode}">
    	</t:outputText>
    	
	    <h:panelGroup>
	    	<h:outputLabel for="CompanyCity" value="#{messages['city']}" styleClass="standardText_Label" />
	    </h:panelGroup>
        <t:outputText id="CompanyCity"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.regCity}"></t:outputText>
	    	
	    <h:panelGroup>
	    <h:outputLabel for="CompanyCountry" value="#{messages['country']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:outputText id="CompanyCountry"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.regCountry.desc}"></t:outputText>
    	
	    <h:panelGroup>
	   		<h:outputLabel for="CompanyState" value="#{messages['state']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:outputText id="CompanyState"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.regState.desc}"></t:outputText>
	    
	    <h:outputLabel for="TelephoneNoOffice" value="#{messages['telephone.no']}" styleClass="standardText_Label" />
    	<t:outputText id="TelephoneNoOffice"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.compTel}">
    	</t:outputText>
	    
	    <h:outputLabel for="FaxNoOffice" value="#{messages['fax.no']}" styleClass="standardText_Label" />
    	<t:outputText id="FaxNoOffice"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.compFax}">
    	</t:outputText>
	</t:panelGrid>
	
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['mailing.info']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid id="mailInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
		<h:panelGroup>
			<h:outputLabel for="MailAddress1" value="#{messages['mail.address']}" styleClass="standardText_Label" />
		</h:panelGroup>
	    <t:outputText id="MailAddress1"     styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.mailAddress1}"></t:outputText>
	     
	     
	    <h:panelGroup></h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="MailAddress2"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.mailAddress2}"></t:outputText>
	    </h:panelGroup>
	    
	    <h:panelGroup>
			<h:outputLabel for="MailPostcode" value="#{messages['mail.postcode']}" styleClass="standardText_Label" />
		</h:panelGroup>
	    <t:outputText id="MailPostcode"     styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.mailPostcode}">
	    </t:outputText>
	    
	    <h:panelGroup>
			 <h:outputLabel for="MailCity" value="#{messages['mail.city']}" styleClass="standardText_Label" />
		</h:panelGroup>	
		<t:outputText  id="MailCity"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.mailCity}"></t:outputText>
	
	     <h:panelGroup>
			 <h:outputLabel for="MailCountry" value="#{messages['mail.country']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText  id="MailCountry"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.mailCountry.desc}"></t:outputText>
	    
	    <h:panelGroup>
			 <h:outputLabel for="MailState" value="#{messages['mail.state']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText  id="MailState"    styleClass="standardText" value="#{adminProspectDocCheckListBean.memberComp.mailState.desc}"></t:outputText>
	   </t:panelGrid>
	   
	   <rich:spacer height="30"></rich:spacer>
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['document.check.list']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
	<h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel value="#{messages['compulsary.documents']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:dataTable id="noncomdoc" var="doc" value="#{adminProspectDocCheckListBean.mandList}" rowIndexVar="rowNo" styleClass="standardTable"
            headerClass="standardTable_Header" width="100%">
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['row.number']}"></t:outputText>
	    		</f:facet>
	    			<t:outputText value="#{rowNo+1}"></t:outputText>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['documents']}"></t:outputText>
	    		</f:facet>
	    			<t:outputText value="#{doc.docCheckList.title}"></t:outputText>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['received']}"></t:outputText>
	    		</f:facet>
	    		<t:selectBooleanCheckbox value="#{doc.receivedCheck}"></t:selectBooleanCheckbox>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['date']}"></t:outputText>
	    		</f:facet>
	    		<t:inputCalendar
				monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" 
				currentDayCellClass="currentDayCell" value="#{doc.receivedDate}"
				renderAsPopup="true" popupTodayString="#{messages['popup.today']}"
				popupWeekString="#{messages['popup.week']}" popupDateFormat="dd/MM/yyyy"
				renderPopupButtonAsImage="true"
				styleClass="standardText"
	    	>
	    	</t:inputCalendar>
	    	</t:column>
	    	
	    </t:dataTable>
	    
	     <h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel value="#{messages['non.compulsary.documents']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:dataTable id="comdoc" var="doc1" value="#{adminProspectDocCheckListBean.notmandList}" rowIndexVar="rowNo" styleClass="standardTable"
            headerClass="standardTable_Header" width="100%">
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['row.number']}"></t:outputText>
	    		</f:facet>
	    			<t:outputText value="#{rowNo+1}"></t:outputText>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['documents']}"></t:outputText>
	    		</f:facet>
	    			<t:outputText value="#{doc1.docCheckList.title}"></t:outputText>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['received']}"></t:outputText>
	    		</f:facet>
	    		<t:selectBooleanCheckbox value="#{doc1.receivedCheck}"></t:selectBooleanCheckbox>
	    	</t:column>
	    	
	    	<t:column>
	    		<f:facet name="header">
	    			<t:outputText value="#{messages['date']}"></t:outputText>
	    		</f:facet>
	    		<t:inputCalendar
				monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" 
				currentDayCellClass="currentDayCell" value="#{doc1.receivedDate}"
				renderAsPopup="true" popupTodayString="#{messages['popup.today']}"
				popupWeekString="#{messages['popup.week']}" popupDateFormat="dd/MM/yyyy"
				renderPopupButtonAsImage="true"
				styleClass="standardText"
	    	>
	    	</t:inputCalendar>
	    	</t:column>
	    	
	    </t:dataTable>
	</t:panelGrid>
	
		<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
			<t:outputText></t:outputText>
			<t:panelGrid columns="3">
				<h:commandButton styleClass="button" action="#{adminProspectDocCheckListBean.completeCheckAction}" value="#{messages['complete']}" ></h:commandButton>
				<h:commandButton styleClass="button" action="#{adminProspectDocCheckListBean.checkAction}" value="#{messages['check']}" ></h:commandButton>
				<h:commandButton styleClass="button" action="#{adminProspectDocCheckListBean.backAction}" value="#{messages['cancel']}" immediate="true"></h:commandButton>
			</t:panelGrid>
		</t:panelGrid>
	
</rich:panel>

